import request from '@/utils/request'
// 协议列表
export function apiArticleList(data) {
    return request({
        method: 'post',
        url: '/article/list',
        data: data,
        headers: {
            repeatSubmit: false
        }
    })
}
// 保存协议
export function apiArticleAdd(data) {
    return request({
        method: 'post',
        url: '/article/add',
        data: data,
        headers: {
            isToken: true,
            repeatSubmit: false
        }
    })
}
// 编辑协议
export function apiArticleEdit(data) {
    return request({
        method: 'post',
        url: '/article/edit',
        data: data,
        headers: {
            repeatSubmit: false
        }
    })
}
// 删除协议
export function apiArticleDeleteOne(data) {
    return request({
        method: 'get',
        url: '/article/deleteOne',
        params: data,
        headers: {
            repeatSubmit: false
        }
    })
}
// 根据业务id获取协议
export function apiArticleGetOne(data) {
    return request({
        method: 'get',
        url: '/article/getOne',
        params: data,
        headers: {
            repeatSubmit: false
        }
    })
}
// 根据类型获取
export function apiArticleGetByType(data) {
    return request({
        method: 'get',
        url: '/article/getByType',
        params: data,
        headers: {
            repeatSubmit: false
        }
    })
}

